var util = require('../../utils/util.js');
var app = getApp();
Page({
  data: {
      userInfo:{
        nickname:"江小薇"
      },
      curr:{
          mtrCurr:"",
          jsCurr:"curr",
          hzCurr:"",
          wyysCurr:""
      }
  },
  loadMore:function(){
      if(!noMore){
        page ++;
        this.load();
      }
  },
  onLoad: function(data){
    this.load();
  },
  load:function(){
    
  },
  headerCurr: function(e){
        var cName = e.currentTarget.dataset.name;
        if(cName == "mtr"){
            this.setData({
                curr:{
                    mtrCurr:"curr",
                    jsCurr:"",
                    hzCurr:"",
                    wyysCurr:""
                }
            });
        }else if(cName == "js"){
            this.setData({
                curr:{
                    mtrCurr:"",
                    jsCurr:"curr",
                    hzCurr:"",
                    wyysCurr:""
                }
            });
        }else if(cName == "hz"){
            this.setData({
                curr:{
                    mtrCurr:"",
                    jsCurr:"",
                    hzCurr:"curr",
                    wyysCurr:""
                }
            });
        }else if(cName == "wyys"){
            this.setData({
                curr:{
                    mtrCurr:"",
                    jsCurr:"",
                    hzCurr:"",
                    wyysCurr:"curr"
                }
            });
        }
    }
})